package com.yan;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author yanheng
 * @data 2019/10/21 15:04
 */

@Component
public class LoginImpl implements ILogin {
	String id = "";

	@Autowired(required = false)
	public void setId(String id){
		this.id = id;
	}
	@Override
	public String loginCheck(String userName, String password) {
		System.out.println(userName +": 登录");
		return "success";
	}
}
